//
//  FlipsideViewController.h
//  RunSketch
//
//  Created by Brian Hinch on 7/8/08.
//  Copyright Tellart 2008. All rights reserved.
//

#import "SketchUpdateController.h"
#import <UIKit/UIKit.h>

#define kLocationLabelHeading           @"Location: "
#define kAccelerometerLabelHeading      @"Accelerometer: "

@interface FlipsideViewController : UIViewController {
    IBOutlet UITextField *sketchServerTextField;
	IBOutlet UIButton *updateSketchButton;
    IBOutlet UILabel *updatingLabel;
    IBOutlet UIActivityIndicatorView *updateActivity;
    IBOutlet UIProgressView *updateProgress;
	IBOutlet UIButton *cancelUpdateButton;
	IBOutlet UISwitch *flowControlSwitch;
	IBOutlet UISwitch *iopackBoostSwitch;
}

- (void)hideCancelUI;
- (void)didStartSketchUpdate;

- (void)didFailWithConnectionError: (SketchUpdateController *)c;
- (void)didFailWithCommunicationError: (SketchUpdateController *)c:(NSString *)msg;
- (void) didLoadCatalog: (SketchUpdateController *)c;
- (void) didFailWithCatalogParserError: (SketchUpdateController *)c: (NSError *)err;
- (void) madeProgress: (SketchUpdateController *)c: (int)bytesLoaded: (int)bytesTotal;
- (void) didSucceed: (SketchUpdateController *)c;
-(void) didStop: (SketchUpdateController *)c;

- (id)getSketchServerNameInUI;
- (void)setSketchServerNameInUI:(NSString *)text;

- (int)getFlowControlStateInUI;
- (void)setFlowControlStateInUI:(int)state;

- (int)getIOPackBoostStateInUI;
- (void)setIOPackBoostStateInUI:(int)state;

@end
